let url = new URL("http://www.lovo.com/path?name=abc&age=20");

console.log(url.searchParams.get("name"))

let params = new URLSearchParams(url.search);
console.log(url.search)